<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.2"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>轮回之牢: Rectangle类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">轮回之牢<span id="projectnumber">&#160;0.0.1</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.2 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search",'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-types">Public 类型</a> &#124;
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pub-attribs">Public 属性</a> &#124;
<a href="class_rectangle-members.html">所有成员列表</a>  </div>
  <div class="headertitle"><div class="title">Rectangle类 参考</div></div>
</div><!--header-->
<div class="contents">

<p>矩形  
 <a href="class_rectangle.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="_rectangle_8h_source.html">Rectangle.h</a>&gt;</code></p>
<div class="dynheader">
Rectangle 的协作图:</div>
<div class="dyncontent">
<div class="center"><img src="class_rectangle__coll__graph.png" border="0" usemap="#a_rectangle_coll__map" alt="Collaboration graph"/></div>
<map name="a_rectangle_coll__map" id="a_rectangle_coll__map">
<area shape="rect" title="矩形" alt="" coords="5,139,85,165"/>
<area shape="rect" href="class_point.html" title="二维点" alt="" coords="19,5,71,32"/>
</map>
<center><span class="legend">[<a href="graph_legend.html">图例</a>]</span></center></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-types" name="pub-types"></a>
Public 类型</h2></td></tr>
<tr class="memitem:a1c76e49430d4d6a878907e7bcee70da2"><td class="memItemLeft" align="right" valign="top"><a id="a1c76e49430d4d6a878907e7bcee70da2" name="a1c76e49430d4d6a878907e7bcee70da2"></a>enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rectangle.html#a1c76e49430d4d6a878907e7bcee70da2">SpiltRegion</a> { <br />
&#160;&#160;<b>UPPER_LEFT</b>
, <b>UP</b>
, <b>UPPER_RIGHT</b>
, <b>LEFT</b>
, <br />
&#160;&#160;<b>INSIDE</b>
, <b>RIGHT</b>
, <b>LOWER_LEFT</b>
, <b>DOWN</b>
, <br />
&#160;&#160;<b>LOWER_RIGHT</b>
<br />
 }</td></tr>
<tr class="memdesc:a1c76e49430d4d6a878907e7bcee70da2"><td class="mdescLeft">&#160;</td><td class="mdescRight">矩形将平面区域分成9块 <br /></td></tr>
<tr class="separator:a1c76e49430d4d6a878907e7bcee70da2"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-methods" name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:a0d38078e09cd3151d3009eed3a449660"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rectangle.html#a0d38078e09cd3151d3009eed3a449660">getWidth</a> () const</td></tr>
<tr class="memdesc:a0d38078e09cd3151d3009eed3a449660"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取矩形宽度  <a href="class_rectangle.html#a0d38078e09cd3151d3009eed3a449660">更多...</a><br /></td></tr>
<tr class="separator:a0d38078e09cd3151d3009eed3a449660"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae2fb8da7f67a36a80d8f789eec63a074"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rectangle.html#ae2fb8da7f67a36a80d8f789eec63a074">getHeight</a> () const</td></tr>
<tr class="memdesc:ae2fb8da7f67a36a80d8f789eec63a074"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取矩形高度  <a href="class_rectangle.html#ae2fb8da7f67a36a80d8f789eec63a074">更多...</a><br /></td></tr>
<tr class="separator:ae2fb8da7f67a36a80d8f789eec63a074"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a87f41c3f204a8977f9f7556b1816a5fa"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rectangle.html#a87f41c3f204a8977f9f7556b1816a5fa">Rectangle</a> (const <a class="el" href="class_point.html">Point</a> &amp;lower_left, double width, double height)</td></tr>
<tr class="memdesc:a87f41c3f204a8977f9f7556b1816a5fa"><td class="mdescLeft">&#160;</td><td class="mdescRight">根据左下角和宽高创建矩形  <a href="class_rectangle.html#a87f41c3f204a8977f9f7556b1816a5fa">更多...</a><br /></td></tr>
<tr class="separator:a87f41c3f204a8977f9f7556b1816a5fa"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:adceaf832dba90e2fd4b08e7ba6aadef5"><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_rectangle.html#a1c76e49430d4d6a878907e7bcee70da2">SpiltRegion</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rectangle.html#adceaf832dba90e2fd4b08e7ba6aadef5">getPointRegion</a> (const <a class="el" href="class_point.html">Point</a> &amp;pos) const</td></tr>
<tr class="memdesc:adceaf832dba90e2fd4b08e7ba6aadef5"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取点所在矩形的区域，在矩形上时返回INSIDE  <a href="class_rectangle.html#adceaf832dba90e2fd4b08e7ba6aadef5">更多...</a><br /></td></tr>
<tr class="separator:adceaf832dba90e2fd4b08e7ba6aadef5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7280e33fa98d1d19f04020dacedddc5e"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_rectangle.html#a7280e33fa98d1d19f04020dacedddc5e">hasOverlapWith</a> (const <a class="el" href="class_rectangle.html">Rectangle</a> &amp;other) const</td></tr>
<tr class="memdesc:a7280e33fa98d1d19f04020dacedddc5e"><td class="mdescLeft">&#160;</td><td class="mdescRight">与另一个矩形有重叠部分  <a href="class_rectangle.html#a7280e33fa98d1d19f04020dacedddc5e">更多...</a><br /></td></tr>
<tr class="separator:a7280e33fa98d1d19f04020dacedddc5e"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a id="pub-attribs" name="pub-attribs"></a>
Public 属性</h2></td></tr>
<tr class="memitem:a3dc08afd275752c740582dced10e3824"><td class="memItemLeft" align="right" valign="top"><a id="a3dc08afd275752c740582dced10e3824" name="a3dc08afd275752c740582dced10e3824"></a>
<a class="el" href="class_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><b>lower_left</b></td></tr>
<tr class="separator:a3dc08afd275752c740582dced10e3824"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a55c0f76f58e9528f8a83db0a376df814"><td class="memItemLeft" align="right" valign="top"><a id="a55c0f76f58e9528f8a83db0a376df814" name="a55c0f76f58e9528f8a83db0a376df814"></a>
<a class="el" href="class_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><b>upper_left</b></td></tr>
<tr class="separator:a55c0f76f58e9528f8a83db0a376df814"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad7f777b70b99a19ded5392827b715b0f"><td class="memItemLeft" align="right" valign="top"><a id="ad7f777b70b99a19ded5392827b715b0f" name="ad7f777b70b99a19ded5392827b715b0f"></a>
<a class="el" href="class_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><b>lower_right</b></td></tr>
<tr class="separator:ad7f777b70b99a19ded5392827b715b0f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee20a8c4b59fd22651dde2686badc347"><td class="memItemLeft" align="right" valign="top"><a id="aee20a8c4b59fd22651dde2686badc347" name="aee20a8c4b59fd22651dde2686badc347"></a>
<a class="el" href="class_point.html">Point</a>&#160;</td><td class="memItemRight" valign="bottom"><b>upper_right</b></td></tr>
<tr class="separator:aee20a8c4b59fd22651dde2686badc347"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p >矩形 </p>
</div><h2 class="groupheader">构造及析构函数说明</h2>
<a id="a87f41c3f204a8977f9f7556b1816a5fa" name="a87f41c3f204a8977f9f7556b1816a5fa"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a87f41c3f204a8977f9f7556b1816a5fa">&#9670;&nbsp;</a></span>Rectangle()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Rectangle::Rectangle </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>lower_left</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>根据左下角和宽高创建矩形 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">lower_left</td><td></td></tr>
    <tr><td class="paramname">width</td><td></td></tr>
    <tr><td class="paramname">height</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">成员函数说明</h2>
<a id="ae2fb8da7f67a36a80d8f789eec63a074" name="ae2fb8da7f67a36a80d8f789eec63a074"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ae2fb8da7f67a36a80d8f789eec63a074">&#9670;&nbsp;</a></span>getHeight()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Rectangle::getHeight </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取矩形高度 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="adceaf832dba90e2fd4b08e7ba6aadef5" name="adceaf832dba90e2fd4b08e7ba6aadef5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adceaf832dba90e2fd4b08e7ba6aadef5">&#9670;&nbsp;</a></span>getPointRegion()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_rectangle.html#a1c76e49430d4d6a878907e7bcee70da2">Rectangle::SpiltRegion</a> Rectangle::getPointRegion </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_point.html">Point</a> &amp;&#160;</td>
          <td class="paramname"><em>pos</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取点所在矩形的区域，在矩形上时返回INSIDE </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">pos</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<div class="dynheader">
这是这个函数的调用关系图:</div>
<div class="dyncontent">
<div class="center"><img src="class_rectangle_adceaf832dba90e2fd4b08e7ba6aadef5_icgraph.png" border="0" usemap="#aclass_rectangle_adceaf832dba90e2fd4b08e7ba6aadef5_icgraph" alt=""/></div>
<map name="aclass_rectangle_adceaf832dba90e2fd4b08e7ba6aadef5_icgraph" id="aclass_rectangle_adceaf832dba90e2fd4b08e7ba6aadef5_icgraph">
<area shape="rect" title="获取点所在矩形的区域，在矩形上时返回INSIDE" alt="" coords="232,5,408,32"/>
<area shape="rect" href="class_rectangle.html#a7280e33fa98d1d19f04020dacedddc5e" title="与另一个矩形有重叠部分" alt="" coords="5,5,184,32"/>
</map>
</div>

</div>
</div>
<a id="a0d38078e09cd3151d3009eed3a449660" name="a0d38078e09cd3151d3009eed3a449660"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0d38078e09cd3151d3009eed3a449660">&#9670;&nbsp;</a></span>getWidth()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double Rectangle::getWidth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>获取矩形宽度 </p>
<dl class="section return"><dt>返回</dt><dd></dd></dl>

</div>
</div>
<a id="a7280e33fa98d1d19f04020dacedddc5e" name="a7280e33fa98d1d19f04020dacedddc5e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7280e33fa98d1d19f04020dacedddc5e">&#9670;&nbsp;</a></span>hasOverlapWith()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Rectangle::hasOverlapWith </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_rectangle.html">Rectangle</a> &amp;&#160;</td>
          <td class="paramname"><em>other</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>与另一个矩形有重叠部分 </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">other</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>返回</dt><dd></dd></dl>
<div class="dynheader">
函数调用图:</div>
<div class="dyncontent">
<div class="center"><img src="class_rectangle_a7280e33fa98d1d19f04020dacedddc5e_cgraph.png" border="0" usemap="#aclass_rectangle_a7280e33fa98d1d19f04020dacedddc5e_cgraph" alt=""/></div>
<map name="aclass_rectangle_a7280e33fa98d1d19f04020dacedddc5e_cgraph" id="aclass_rectangle_a7280e33fa98d1d19f04020dacedddc5e_cgraph">
<area shape="rect" title="与另一个矩形有重叠部分" alt="" coords="5,5,184,32"/>
<area shape="rect" href="class_rectangle.html#adceaf832dba90e2fd4b08e7ba6aadef5" title="获取点所在矩形的区域，在矩形上时返回INSIDE" alt="" coords="232,5,408,32"/>
</map>
</div>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Utils/Math/<a class="el" href="_rectangle_8h_source.html">Rectangle.h</a></li>
<li>D:/Code/cProgram/CPP/Qt/TeamCurriculumDesign/Utils/Math/Rectangle.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.2
</small></address>
</body>
</html>
